package clevo.common.code.helper.fsm;


import clevo.common.BaseObject;
import clevo.common.code.helper.Writeable;

import java.util.HashMap;
import java.util.Map;

public class Stat extends BaseObject implements Writeable {
    private static final long serialVersionUID = 1L;

    private String name;
    private Map<String, String> actions = new HashMap<String, String> ();

    public Stat(String name) {
        this.name = name.toUpperCase();
    }

    public Stat addAction(String action, String targetStat) {
        actions.put(action, targetStat.toUpperCase());
        return this;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, String> getActions() {
        return actions;
    }

    public void setActions(Map<String, String> actions) {
        this.actions = actions;
    }
}
